import service from '@/plugins/utils/request'
let pre = 'api/Order/'
export default{
	//提交订单
	//prdId 
	Submit(data) {
		return service({
			url: `${pre}Submit`,
			method: 'post',
			data
		})
	},
	
	//订单列表
	//status 订单状态，1待确认 ，2已完成，0所有
	//pageIndex
	//pageSize
	ListOrder(data) {
		return service({
			url: `${pre}ListOrder`,
			method: 'post',
			data
		})
	},

	GetBill(data) {
		return service({
			url: `${pre}GetBill`,
			method: 'post',
			data
		})
	},


	

	//获取商品详情
	//orderId 
	GetOrder(data) {
		return service({
			url: `${pre}GetOrder`,
			method: 'post',
			data
		})
	},


	//获取下级订单
	//username 用户
	//mobile 电话
	//beginDate 开始日期
	//endDate 结束日期
	//pageIndex
	//pageSize
	ListSubOrder(data) {
		return service({
			url: `${pre}ListSubOrder`,
			method: 'post',
			data
		})
	},

	ApplyService(data) {
		return service({
			url: `${pre}ApplyService`,
			method: 'post',
			data
		})
	},
	
	FinishOrder(data) {
		return service({
			url: `${pre}FinishOrder`,
			method: 'post',
			data
		})
	},

	PayOrder(data) {
		return service({
			url: `${pre}PayOrder`,
			method: 'post',
			data
		})
	},

	CommentOrder(data) {
		return service({
			url: `${pre}CommentOrder`,
			method: 'post',
			data
		})
	},

	SubmitServeInfo(data) {
		return service({
			url: `${pre}SubmitServeInfo`,
			method: 'post',
			data
		})
	},

	ListMyCodes(data) {
		return service({
			url: `${pre}ListMyCodes`,
			method: 'post',
			data
		})
	},
	
	CancelOrder(data) {
		return service({
			url: `${pre}CancelOrder`,
			method: 'post',
			data
		})
	},

	RefundApply(data) {
		return service({
			url: `${pre}RefundApply`,
			method: 'post',
			data
		})
	},
	
	
	
} 